/*
 * RegionBuilder.h
 * get a BlockImpl ,then, builder a new region  once by once;
 *
 *  Created on: 2009-8-23
 *      Author: ws
 */

#ifndef REGIONBUILDER_H_
#define REGIONBUILDER_H_
#include<map>
#include"Region.hpp"
class BlockImpl;
class RegionBuilder {
private:
	Region * last;
	std::map<int, Region *> table;
	void build_new_ctrflow(Region *from, Region *to );
public:
	Region *build_new_region(BlockImpl *bk);
	virtual ~RegionBuilder();
};

#endif /* REGIONBUILDER_H_ */
